/*
 * @Author: shenya
 * @Date: 2023-11-07 17:32:29
 * @Description:
 */
import request from '@/router/axios';
//查询
export function fetchLabelList(params) {
  return request({
    url: '/app/appuser/label/page',
    method: 'get',
    params,
  });
}
//新增标签
export function insertLabel(data) {
  return request({
    url: '/app/appuser/label',
    method: 'post',
    data,
  });
}
//修改标签
export function updateLabel(data) {
  return request({
    url: '/app/appuser/label',
    method: 'put',
    data,
  });
}
//通过id查询
export function selectLabelById(id) {
  return request({
    url: `/app/appuser/label/${id}`,
    method: 'get',
  });
}
//删除标签
export function deleteLabel(id) {
  return request({
    url: `/app/appuser/label/${id}`,
    method: 'delete',
  });
}
//通过id查看标签管理
export function labelManageById(params) {
  return request({
    url: '/app/appuser/label/list',
    method: 'get',
    params,
  });
}
//用户标签关联
export function userRealation(params) {
  return request({
    url: '/app/appuser/label/contact/page',
    method: 'get',
    params,
  });
}
//导出来excel
export function importExcel(data) {
  return request({
    url: '/app/appuser/import',
    method: 'post',
    data,
  });
}
